package com.example.foodsy.service;

import com.example.foodsy.utils.Result;
import com.example.foodsy.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 系统管理员表 服务类
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
public interface AdminService extends IService<Admin> {

    Result getAdminByNameByPass(String adminName, String adminPassword);

    Result addAdmin(Admin admin);

    Result deleteAdmin(Long id);

    Result updateAdmin(Admin admin);

    Result getAdminById(Long id);

    Result getAdminList(Integer pageNum, Integer pageSize, String username);
}
